账号：<input type="text" id="account" />
		    密码：<input type="text" id="password" />
		    手机号：<input type="text" id="phone" />
		    <button id="add" onclick="add()">新增</button>
		    
		    <table border="1">
		      <thead>
		        <th>账号</th>
		        <th>密码</th>
		        <th>手机号</th>
		        <th>操作</th>
		      </thead>
		      <tbody id="table_content">
		      </tbody>
		    </table>
		    
		    <script>    
		      window.onload = function(){
		        function bulid_info(){
		          var user = [{
		            account:"admin",
		            password:"111111",
		            phone:"13111111111",
		            },{
		            account:"admin1",
		            password:"222222",
		            phone:"13111111111",  
		            },{
		            account:"admin2",
		            password:"333333",
		            phone:"13111111111",  
		            }];  
		            
		          var table_body = document.querySelector("#table_content");
		          for(var i = 0; i<user.length; i++){
		            var tr = document.createElement("tr");
		            var account_td = document.createElement("td");
		            account_td.innerText = user[i].account;
		            var password_td = document.createElement("td");
		            password_td.innerText = user[i].password;
		            var phone_td = document.createElement("td");
		            phone_td.innerText = user[i].phone;
		            var btn_td = document.createElement("td");
		            btn_td.innerHTML = "<button onclick='del(this)'>删除</button><button onclick='update(this)'>编辑</button>";
		            tr.appendChild(account_td);
		            tr.appendChild(password_td);
		            tr.appendChild(phone_td);
		            tr.appendChild(btn_td);
		            table_body.appendChild(tr);
		            }
		            
		            }
		            bulid_info();
		            }
		            
		            function del(curr){
		                curr.parentNode.parentNode.remove();
		              }
		              
		            function update(curr){
		              var accountValue = document.querySelector("#account").value;
		              var passwordValue = document.querySelector("#password").value;
		              var phoneValue = document.querySelector("#phone").value;
		              var childTds = curr.parentNode.parentNode.childNodes;
		              childTds[0].innerText = accountValue;
		              childTds[1].innerText = passwordValue;
		              childTds[2].innerText = phoneValue;
		            }  
		              
		          function add(){
		            var table_body = document.querySelector("#table_content");
		            var account = document.querySelector("#account").value;
		            var Password = document.querySelector("#password").value;
		            var phone = document.querySelector("#phone").value;
		      
		          var tr = document.createElement("tr");
		          var account_td = document.createElement("td");
		          account_td.innerText = account;
		          var password_td = document.createElement("td");
		          password_td.innerText = Password;
		          var phone_td = document.createElement("td");
		          phone_td.innerText = phone;
		          var btn_td = document.createElement("td");
		          btn_td.innerHTML = "<button onclick='del(this)'>删除</button><button onclick='update(this)'>编辑</button>";
		          tr.appendChild(account_td);
		          tr.appendChild(password_td);
		          tr.appendChild(phone_td);
		          tr.appendChild(btn_td);
		          table_body.appendChild(tr);
		          }
		    